package com.nervenets.web.controller.admin;

import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@EqualsAndHashCode(callSuper = true)
@Data
public class ChangePasswordParams extends TokenParams {
    @ApiModelProperty(value = "旧密码", required = true)
    @NotNull(message = "不能为空")
    @Size(min = 6, message = "密码长度最少6位")
    private String oldPwd;
    @ApiModelProperty(value = "新密码", required = true)
    @NotNull(message = "不能为空")
    @Size(min = 6, message = "密码长度最少6位")
    private String newPwd;
    @ApiModelProperty(value = "重复新密码", required = true)
    @NotNull(message = "不能为空")
    @Size(min = 6, message = "密码长度最少6位")
    private String newPwd2;
}
